import React from "react";
import dva from "dva";
import {browserHistory} from "dva/router";

// 1. Initialize
const app = dva({
    history: browserHistory,
    initialState: {}
});

// 2. Plugins
// app.use({});

// 3. Model
// app.model(require('./models/example'));
app.model(require('./models/Api/Api').default);
app.model(require('./models/Api/Introduction/Introduction').default);
app.model(require('./models/Api/Configuration/Configuration').default);
app.model(require('./models/Api/QuickStart/QuickStart').default);
app.model(require('./models/Api/AboutUs/AboutUs').default);
// 4. Router
app.router(require('./router').default);

// 5. Start
app.start('#root');
